package com.woniuxy.intercepts;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Author: 马宇航
 * @Todo: SpringMVC的java配置方式
 * @DateTime: 25/08/06/星期三 17:03
 * @Component: 成都蜗牛学苑
 **/
@Configuration
public class InterceptedRegister implements WebMvcConfigurer {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        //设置注册的优先级
        registry.addInterceptor(new PermsInterceptor()).order(0);
    }
}

